-- GENERATED SPELL FOR [Spitelash Enchantress] --


function spell0_7886(pUnit, Event) --@Enchanted Quickness,n/a--
pUnit:FullCastSpellOnTarget(3443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7886', 18000, 1)
end

function spell1_7886(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(12548,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7886', 8338, 1)
end

function Sorts_7886(pUnit, Event)
local choix_sorts_7886 = math.random(0, 1)
if choix_sorts_7886 == 0 then
pUnit:RegisterEvent('spell0_7886', 1, 1)
end
if choix_sorts_7886 == 1 then
pUnit:RegisterEvent('spell1_7886', 1, 1)
end
end

function mob7886_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7886', math.random(1500, 3000), 1)
end

function mob7886_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7886_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7886_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7886, 1, 'mob7886_Action')
RegisterUnitEvent(7886, 2, 'mob7886_Leave')
RegisterUnitEvent(7886, 3, 'mob7886_Kill')
RegisterUnitEvent(7886, 4, 'mob7886_Die')
